package demo03;

public class Main {
    public static void main(String[] args) {
        Body.Heart obj=new Body().new Heart();//直接访问内部类方法
        obj.beat();

        System.out.println("===================");

        Body body=new Body();//通过外部类间接访问
        body.methodBody();

        System.out.println("===================");

        Outer.Inner obj1=new Outer().new Inner();
        obj1.show();
    }
}
